<%@ page import="com.hngc.dao.UserDao" %>
<%@ page import="com.hngc.dao.entity.User" %><%--
  Created by IntelliJ IDEA.
  User: 30969
  Date: 2024/1/10
  Time: 12:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    int id = Integer.parseInt(request.getParameter("id"));
    UserDao userDao = new UserDao();
    User user = userDao.getUserById(id);
%>

<form action="userUpdate_action.jsp" method="post">
    <input type="hidden" name="id" value="<%=user.getId()%>">
    账号： <input type="text" name="name" id="name" autocomplete="off" value="<%=user.getName()%>"> <br/>
    密码： <input type="password" name="pwd" id="pwd" value="<%=user.getPwd()%>"> <br/>
    年龄： <input type="text" name="age" id="age" value="<%=user.getAge()%>"> <br/>
    <input type="submit" value="确认修改">
</form>
</body>
</html>
